package com.easy.dao;

import com.easy.bean.User;
import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    User getUserByUsername(@Param("username") String username);

    int addUser(@Param("user") User user);
    int editUser(@Param("user") User user);
    int deleteUser(@Param("id") int id);
    List<User> selectUser(@Param("page") Page page, @Param("text") String text);
    User getUserById(@Param("id") int id);
    int UserCount(@Param("text") String text);

}
